﻿<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8" />
  <title>首页</title>
  <meta name="page-view-size" content="1280*720" />
  <link rel="stylesheet" href="./css/base.css" />
  <link rel="stylesheet" href="./css/index.css" />
  <script type="text/javascript" src="./lib/js/evm.js"></script>
  <script type="text/javascript" src="./lib/js/Evm_djyw.js"></script>
  <script type="text/javascript" src="./lib/js/key.js"></script>
  <script src="lib/js/md5.js" type="text/javascript" charset="utf-8"></script>
  <script src="./lib/js/jquery-1.11.1.min.js" type="text/javascript" charset="utf-8"></script>
  <script src="./lib/js/jquery.cookie.js" type="text/javascript" charset="utf-8"></script>
  <script src="./js/api.js" type="text/javascript" charset="utf-8"></script>
  <script src="./js/public.js" type="text/javascript" charset="utf-8"></script>
</head>

<body>
  <div class="index-bg" id="indexMain">
    <div class="model">
      <video src="http://fytv.cst-info.cn:9002/index.mp4" autopla="autoplay" height="100%" width="100%" loop="loop" controls></video>
    </div>
    <div class="model"><img src="images/dtindex/index1.png" /></div>
    <div class="model"><img src="images/dtindex/index2.png" /></div>
    <div class="model"><img src="images/dtindex/index3.png" /></div>
    <div class="model"><img src="images/dtindex/index4.png" /></div>
    <div class="model"><img src="images/dtindex/index5.png" /></div>
    <div class="model"><img src="images/dtindex/index6.png" /></div>
    <div class="model"><img src="images/dtindex/index7.png" /></div>
    <div class="model"><img src="images/dtindex/index8.png" /></div>
    <div class="model"><img src="images/dtindex/index9.png" /></div>
    <div class="model"><img src="images/dtindex/index10.png" /></div>
  </div>

</body>
<script>
  // 首页视频

  var modelIndex = {
    isVideo: true,
    disUser: false,
    isIndex: true,
    disHeader: true,
    index: 0, //初始位置
    listName: "model", //模块名称
    containerId: "indexMain", //包含模块的标签id
  };

  var data = [
    {
      //视频窗口
    },
    {
      //广告栏目
    },
    {
      name: "阵地建设",
      cid: "55",
      url: "B-doubleList.html",
      model: 'position'
    },
    {
      name: "实践动态",
      url: "B-doubleList.html",
      model: 'dynamic'
    },
    {
      name: "志愿风采",
      url: "A-doubleList.html",
      model: "volunteer",
    },
    {
      name: "群众点单",
      url: "Z-OrderList.html",
      model: "order",
    },
    {
      name: "学习园地",
      url: "B-doubleList.html",
      model: "study",
    },
    {
      name: "大美凤阳",
      url: "A-doubleList.html",
      model: 'beautiful'
    },
    {
      name: "文明建设",
      url: "B-doubleList.html",
      model: 'build'
    },
    {
      name: "现场直播",
      url: "B-doubleList.html",
      model: 'live',
    },
    {
      name: "礼品商城",
      url: "A-doubleList.html",
      model: "goodlist"
    },
  ];

  function direOpt(index, directive) {
    if (directive == "up") {
      //上
      console.log("toptop");
      switch (index) {
        case 0:
        case 2:
        case 3:
          index = -1;
          break;
        case 4:
        case 5:
          index -= 2;
          break;
        case 6:
        case 7:
        case 8:
          index = 0;
          break;

        case 9:
        case 10:
          index -= 5;
          break;
      }
    } else if (directive == "down") {
      //下
      console.log("downdown");
      switch (index) {
        case -1:
          index = 0;
          break;
        case 0:
          index = 7;
          break;
        case 2:
        case 3:
          index += 2;
          break;
        case 5:
        case 4:
          index += 5;
          break;
      }
    } else if (directive == "backwards") {
      //左
      console.log("leftleftleft");
      switch (index) {
        case 2:
        case 4:
          index = 0;
          break;
        case 5:
        case 3:
          index -= 1;
          break;
        default:
          if (index > 6) {
            index--
          }
      }
    } else if (directive == "forwards") {
      //右
      console.log("rightright");
      switch (index) {
        case 0:
          index = 2;
          break;
        case 2:
        case 4:
          index += 1;
          break;
        default:
          if (index!=3&&index!=5&&(index < $(".model").length - 1)) {
            index++;
          }
      }

    }
    console.log(index);
    return index;
  }

  function direEnter(index) {
    window.location.href = data[index].url + "?titles=" + data[index].name + "&model=" + data[index].model;
  }

  function exitPage() {}
</script>

<script type="text/javascript" src="js/index.js"></script>

</html>